import React from 'react';

import Constants from '../../common/Constants';
import CommonSendFetchAction from '../common/CommonSendFetchAction';

export default class JifenMallSignHomeAction extends CommonSendFetchAction {
  constructor() {
    super();

    this.moduleType = Constants.MODULE_TYPE.JIFENMALL;
    this.name = "JifenMallSignAction";
  }
  _dealFinishSucess(data, response) {
  	var n =this.caller.jfdata&&this.caller.jfdata.points||0;
   	this.caller.setState({
      jfdata:data,
      mallsign:this.caller.jfdata&&data.points>n?true:false,
      detail:'今日签到成功，积分+'+(data.points-n),
   })
 }
}
